'''
    元组:定义(元素1，元素2...)
    不可变
    查询
    下标 长度 切片 循环

'''

students = ("小张","小明","小孙","小萱")
print(students[1])
print(len(students))
print(students[1:3])
print(students[::-1])

for student in students:
    print(student)

for i in range(len(students)):
    print(students[i])

print(students.count("小明"))
print(students.index("小萱"))